
<%@page import="entities.Customers"%>
<%@page import="java.util.List"%>
<%@page import="session.ShowAllOrderLocal"%>
<%@page import="javax.naming.InitialContext"%>
<%@page import="javax.naming.Context"%>
<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
    "http://www.w3.org/TR/html4/loose.dtd">
<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%
            String a = request.getParameter("id");
            Context context = new InitialContext();
            Object obj = context.lookup("ShowAllOrderJNDI");
            ShowAllOrderLocal local = (ShowAllOrderLocal) obj;
            List<Customers> listCus = local.getAllAccountUser(a);
            request.setAttribute("listCus", listCus);
%>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title>Tunga Restaurant</title>        
    </head>
    <body>
        <h1 style="color: #7A0402" align="center">Tunga Restaurant</h1>
        <center>
            <div class="outer">
                <!--Header end-->
                <div id="header">
                    <h2 align="center" style="color: 7A0402">Report Customers Details</h2>
                </div>
                <!--Top nav end-->
                <div style="clear:left"></div>
                <div id="outer2">
                    <div id="content" align="center">
                        <br>
                        <div id="main">
                            <c:set var="list" value="${requestScope.listCus}"/>
                            <c:if test="${not empty list}">
                                <div align="center">
                                    <c:forEach var="rows" items="${list}">
                                        <table align="center" border="0">
                                            <tbody>
                                                <tr>
                                                    <td>UserName:</td>
                                                    <td>${rows.custID}</td>
                                                </tr>
                                                <tr>
                                                    <td>First Name:</td>
                                                    <td>${rows.fname}</td>
                                                </tr>
                                                <tr>
                                                    <td>Last Name:</td>
                                                    <td>${rows.lname}</td>
                                                </tr>
                                                <tr>
                                                    <td>Email:</td>
                                                    <td>${rows.email}</td>
                                                </tr>
                                                <tr>
                                                    <td>Phone:</td>
                                                    <td>${rows.phone}</td>
                                                </tr>
                                                <tr>
                                                    <td>Address:</td>
                                                    <td>${rows.address}</td>
                                                </tr>
                                            </tbody>
                                        </table>
                                    </c:forEach>
                                </div>
                            </c:if>
                        </div>
                    </div>
                </div>                
                <!--Bottom part-->
            </div>
        </center>
    </body>
</html>
